<?php
$userProfile = $this->session->userdata('profile');
$CI = & get_instance();
?>
<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container-fluid">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
            </a>
            <a class="brand" href="<?php echo admin_url('') ?>"><?php echo $CI->lang->line('Admin_Panel'); ?></a>
            <div class="nav-collapse">
                <ul class="nav">
                    <li class="active"><a href="<?php echo admin_url('dashboard') ?>"><?php echo $CI->lang->line('Dashboard'); ?></a></li>
                </ul>
            </div>
            <div class="btn-group pull-right"> <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="javascript:void(0)"> <i class="icon-user icon-white"></i>
                <?php echo $userProfile['firstname'] . ' ' . $userProfile['lastname']; ?> <span class="caret"></span> </a>
                <ul class="dropdown-menu">                   
                    <li><a href="<?php echo admin_url('users/edit/' . $this->smauth->getUserId()); ?>"><?php echo $CI->lang->line('Profile'); ?></a></li>
                    <li class="divider"></li>
                    <li><a href="<?php echo admin_url('auth/logout'); ?>"><?php echo $CI->lang->line('Sign_out'); ?></a></li>
                </ul>
            </div>
            <ul class="nav pull-right">
                <li class="divider-vertical"></li>
<!--                <li class="dropdown"> <a href="javascipt:void(0)" class="dropdown-toggle" data-toggle="dropdown"><?php echo $CI->lang->line('Members_Management'); ?><b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo admin_url('ia_saleman') ?>"><?php echo $this->lang->line('Member'); ?></a></li>
                        <li><a href="<?php echo admin_url('users/importcsv'); ?>"><?php echo $this->lang->line('Import_User'); ?></a></li>
                    </ul>
                </li>-->
                <?php /**
                <li class="dropdown"> <a href="javascipt:void(0)" class="dropdown-toggle" data-toggle="dropdown"><?php echo $CI->lang->line('Users_Management'); ?><b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo admin_url('users') ?>"><?php echo $this->lang->line('User'); ?></a></li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="javascipt:void(0)" class="dropdown-toggle" data-toggle="dropdown">Role Manager<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo admin_url('role') ?>">Role</a></li>
                        <li><a href="<?php echo admin_url('role/form') ?>">Add Role</a></li>
                        <li><a href="<?php echo admin_url('generate') ?>">Generate Module</a></li>
                    </ul>
                </li>
                 *
                 */ ?>
            </ul>
            <!--
            <form class="navbar-search pull-left" action="#">
                <input type="text" class="search-query span2" placeholder="Search">
            </form>
            -->
        </div>
    </div>
</div>